<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>修改视界</title>
<%@ include file="commons/meta.jsp"%>
<%@ include file="commons/tags.jsp"%>
<link href="${ctx}/css/form.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/js/uploadify/uploadify.css" rel="stylesheet"
	type="text/css" />
<script type="text/javascript" src="${ctx}/js/jquery-1.8.0.min.js"></script>
<script type="text/javascript"
	src="${ctx}/js/uploadify/jquery.uploadify-3.1.js"></script>
<script type="text/javascript" src="${ctx}/js/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="${ctx}/js/ckfinder/ckfinder.js"></script>
<script src="${ctx}/js/ckeditor/sample.js" type="text/javascript"></script>
<link href="${ctx}/css/ckeditor/sample.css" rel="stylesheet"
	type="text/css" />
</head>
<body>
	<div id="container">
		<div id="middlecontent">
			<div id="divform">
				<div class="fielddiv">
					<label> 视频标题: </label><input type="text"
						name="title" class="input" value="${model.title }" />
				</div>
				<div class="fielddiv">
					<label> 视频简介: </label>
					<textarea cols="50" rows="5" name="jianjie" class="input">${model.jianjie}</textarea>
				</div>
				<div class="fielddiv">
					<label> 权重: </label> <input type="text" name="weight" class="input"
						value="${model.weight}" />
				</div>
				<div class="fielddiv">
					<label> 栏目: </label> <select name="flanmu" class="input">
						<c:forEach items="${applicationScope.firstLanmu}" var="flanmu">
							<option value="${flanmu.id}"
								<c:if test="${flanmu.id eq fLanmu.id }">selected="selected"</c:if >>${flanmu.name}</option>
						</c:forEach>
					</select> <br /> <br /> <label> 二级栏目: </label>
					<table class="input">
						<tr>
							<c:forEach items="${sLanmu}" var="slanmu">
								<td><input type="checkbox" name="lanmu"
									value="${slanmu.id }"
									<c:if test="${slanmu.seleted }"> checked="checked"</c:if> />&nbsp;${slanmu.name
									}</td>
							</c:forEach>
						</tr>
					</table>
				</div>
				<div class="fielddiv">
					<label> 视频文件: </label>
				</div>
				<div class="fielddiv">
					<label> 视频截图: </label>
					<c:if var="pic" test="${empty model.firstframepic}">
						<img id="videoPic" src="${ctx }/images/video_demo.jpg" width="400"
							height="300" alt="预览截图" />
					</c:if>
					<c:if test="${not pic }">
						<img id="videoPic"
							src="${ctx }/userfiles/videoPic/${model.firstframepic}"
							width="400" height="300" alt="预览截图" />
					</c:if>
				</div>
				<!-- 
					<div class="fielddiv">
						<label> 发布者: </label> <input type="text" name="dpassword"
							class="input" />
					</div>
					 -->
				<div class="fielddiv">
					<label> 内容: </label>
				</div>
			</div>
			<div class="editordiv">
				<textarea id="editor1" name="content" class="ckeditor">${model.content }</textarea>
			</div>

			<div class="center">
				<input type="button" value="返回" class="buttom" onclick="javascript:back();"/>
			</div>

		</div>
	</div>
	<script type="text/javascript">
		CKEDITOR.replace('editor1');
		CKFinder.setupCKEditor(editor, 'ckfinder/');
	</script>
</body>
</html>